package net.myspring.common.mybatis.provider;

import net.myspring.common.mybatis.provider.model.MybatisTable;
import net.myspring.common.utils.ThreadLocalContext;

import java.io.Serializable;

/**
 * Created by liuj on 2016/11/12.
 */
public class BaseProvider {

    protected MybatisTable getMybatisTable() {
        return ProviderUtils.getMybatisTable(getEntityClass());
    }

    protected Class getEntityClass() {
        return ThreadLocalContext.get().getProviderContext().getEntityClass();
    }

}
